package com.tz.service;

import com.tz.dao.UserDao;
import com.tz.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserService{

	@Autowired
	private UserDao userDao;

    public UserServiceImpl() {
        System.out.println("UserServiceImpl空参构造....");
    }

    public void save(User user) {
		userDao.save(user);
	}

}
